document.oncontextmenu = function (ev)
{
var oEvent=ev||event;
var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
var x = oEvent.pageX || oEvent.clientX + scrollX;
var y = oEvent.pageY || oEvent.clientY + scrollY;
var oDiv=document.getElementById('Rclick');   
oDiv.style.display='block';
oDiv.style.left=x+'px';
oDiv.style.top=y+'px';
return false;
};
document.onclick=function ()
{
var oDiv=document.getElementById('Rclick');   
oDiv.style.display='none';
};